export function setToken(token) {
    wx.setStorageSync('token', token);
}
export function getToken() {
    return wx.getStorageSync('token');
}
export function setLiveId(liveId) {
    wx.setStorageSync('liveId', liveId);
}
export function getLiveId() {
    return wx.getStorageSync('liveId');
}
export function clearStorage() {
    //  wx.removeStorageSync('liveId');
    wx.removeStorageSync('token');
    wx.removeStorageSync('nickName');
    wx.removeStorageSync('avatarUrl');
}
export function setUseTipFlag() {
    wx.setStorageSync('useTipFlag', 1);
}
export function getUseTipFlag() {
    return wx.getStorageSync('useTipFlag');
}
export function setAdPopFlag() {
    wx.setStorageSync('adPopFlag', 1);
}
export function getAdPopFlag() {
    return wx.getStorageSync('adPopFlag');
}
export function setUserInfo(paramObj) {
    wx.setStorageSync('nickName', paramObj.nickName);
    wx.setStorageSync('avatarUrl', paramObj.avatarUrl);
}
export function getUserInfo() {
    return {
        nickName: wx.getStorageSync('nickName'),
        avatarUrl: wx.getStorageSync('avatarUrl')
    }
}
export function setOrigin(origin) {
    wx.setStorageSync('origin', origin);
}
export function getOrigin() {
    return wx.getStorageSync('origin');
}
export function removeOrigin() {
    wx.removeStorageSync('origin');
}
export function setLastId(lastId) {
    wx.setStorageSync('lastId', lastId);
}
export function getLastId() {
    return wx.getStorageSync('lastId');
}